<html>
<body>
<div id="header">
<p style="font-family: Times New Roman, serif; font-size: 45pt; padding-top: 17px;">
Listing Power Logs
</p>
</div>

<div id="main">
<br />
<table style="font-size: 10pt;">
  <tr>
<!--    <th id="small">Load Box |</th> -->
    <th id="small">Logged At |</th>
    <th id="small">Power Consumption |</th>
    <th id="small">PV Power </th>
<!--    <th id="small">Grid Power |</th>
    <th id="small">Net Dollars |</th>
    <th id="small">Creditted Peak Power |</th>
    <th id="small">Creditted Off-Peak</th>
-->
  </tr>

<% @power_logs.each do |power_log| %>
  <tr>
<!--    <td id="small"><%= power_log.loadbox_id %></td> -->
    <td id="small"><%= power_log.logged_at.strftime("%X") %></td>
    <td id="small"><%= power_log.power_consumption %></td>
    <td id="small"><%= power_log.ppv %></td>
<!--    <td id="small"><%= power_log.pgrid %></td>
    <td id="small"><%= power_log.net_dollars %></td>
    <td id="small"><%= power_log.net_peak %></td>
    <td id="small"><%= power_log.net_off_peak %></td>
    <td id="small"><%= link_to 'Show', power_log %></td>
    <td id="small"><%= link_to 'Edit', edit_power_log_path(power_log) %></td>
-->
    <td id="small"><%= link_to 'Destroy', power_log, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />
</div>

<div id="footer">
<!-- <%= link_to 'New Power Log', new_power_log_path %> -->
<%= link_to 'Green Simulations', green_simulations_path %> |
<%= link_to 'Dashboard', dashboard_path %>
</div>

</body>
</html>